package jafou.client.remote;

import java.util.HashMap;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface JafouServiceAsync {
	
	void getForums(AsyncCallback<String[][]> callback);
	
	void getTopicsInForum(String forumId, AsyncCallback<String[][]> callback);
	
	void getPostsInTopic(String topicId, AsyncCallback<String[][]> callback);
	
	void getUserAttributes(AsyncCallback<HashMap<String, String>> callback);
	
	void addForum(String title, String tagline, AsyncCallback<String> callback);
	
	void addTopic(String title, String forumId, AsyncCallback<String> callback);
	
	void addPost(String message, String topicId, AsyncCallback<String> callback);
	
	void delForum(String id, AsyncCallback<String> callback);
	
	void delTopic(String id, AsyncCallback<String> callback);
	
	void delPost(String id, AsyncCallback<String> callback);
	
	void getUserIdForTopic(String topicId, AsyncCallback<String> callback);

}
